<%= form_for(@zone) do |f| %>
<% if @zone.errors.any? %>
<div id="error_explanation">
  <h2><%= pluralize(@zone.errors.count, "error") %> prohibited this zone from being saved:</h2>

  <ul>
    <% @zone.errors.full_messages.each do |msg| %>
    <li><%= msg %></li>
    <% end %>
  </ul>
</div>
<% end %>

<div class="field">
  <%= f.label :virtual_number %><br />
  <%= f.text_field :virtual_number %>
</div>
<div class="field">
  <%= f.label :name %><br />
  <%= f.text_field :name %>
</div>
<div class="field">
  <%= f.label :top_room_number %><br />
  <%= f.text_field :top_room_number %>
</div>
<div class="field">
  <%= f.label :lifespan %><br />
  <%= f.text_field :lifespan %>
</div>
<div class="field">
  <%= f.label :zone_reset_mode_id %><br />
  <%= f.collection_select(:zone_reset_mode_id, ZoneResetMode.all, :id, 
      :description, { :prompt => false })
  %>
</div>
<div class="actions">
  <%= f.submit %>
</div>
<% end %>
